package org.rendao.model.query;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.rendao.model.CommonSummary;
import org.springframework.jdbc.core.RowMapper;

public class CommonSummaryRowMapper implements RowMapper<CommonSummary> {

	@Override
	public CommonSummary mapRow(ResultSet rs, int rowNum) throws SQLException {
		CommonSummary summary = new CommonSummary();
		summary.setLabel(rs.getString(1));
		summary.setValue(rs.getString(2));
		return summary;
	}

}
